import Vue from 'vue';
import VeeValidate, { Field } from "vee-validate";
import zh_CN from 'vee-validate/dist/locale/zh_CN';
Vue.use(VeeValidate)
//表单验证
VeeValidate.Validator.localize('zh_CN', {
    messages: {
        ...zh_CN.messages,
        is: (field) => `${field}必须与密码相同`
    },
    attributes: {
        buyerPhone: '手机号',
        buyerPw: '密码',
        rebuyerPw: '确认密码',
        buyerAddress: '地址',
        buyerName: '用户名',
        buyerId: '账号'
    }
})